package com.smz.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smz.entity.Supplier;
import org.apache.ibatis.annotations.Param;


public interface SupplierDAO extends BaseMapper<Supplier> {

    IPage<Supplier> selectSupplierPage(Page<Supplier> supplierPage);

    IPage<Supplier> selectSupplierLikePage(Page<Supplier> supplierPage, @Param("address") String address, @Param("name") String name);

    int insertSupplier(Supplier supplier);
    /**
     * 根据名称查询
     */
    Supplier selectSuppByName(@Param("name") String name);
}
